-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MonoClass method usage #41
Comments
没有返回值也没有参数的方法 public void EnableButtonAnimation()
{
base.method_8("EnableButtonAnimation", Array.Empty<object>());
} |
属性的处理,结构体类型 public bool m_isWild
{
get
{
return base.method_2<bool>("m_isWild");
}
} class类型 public Material m_xButtonMaterial
{
get
{
return base.method_3<Material>("m_xButtonMaterial");
}
} 字符串属性 public string m_standardDeckSelectSound
{
get
{
return base.method_4("m_standardDeckSelectSound");
}
} |
System.IntPtr method_0 (System.String string_4, ns27.Class276+Enum20[] enum20_0) |
System.Void smethod_0 () |
获取枚举 // Triton.Game.Mapping.CollectionDeckBoxVisual
// Token: 0x06003D73 RID: 15731 RVA: 0x00026FD0 File Offset: 0x000251D0
public TAG_CLASS GetClass()
{
return base.method_11<TAG_CLASS>("GetClass", Array.Empty<object>());
} |
获取枚举
封装之后 // Triton.Game.Mapping.CollectionDeckSlot
// Token: 0x06003DDD RID: 15837 RVA: 0x00033FFF File Offset: 0x000321FF
public TAG_PREMIUM get_UnPreferredPremium()
{
return base.method_11<TAG_PREMIUM>("get_UnPreferredPremium", Array.Empty<object>());
} |
调用有返回值,但是无参数的方法,用method_11
public bool IsValidForCurrentMode()
{
return base.method_11("IsValidForCurrentMode", Array.Empty());
}
调用没有返回值,有参数的方法
public void SetIsValid(bool isValid)
{
base.method_8("SetIsValid", new object[]
{
isValid
});
}
属性的处理
public bool Available
{
get
{
return base.method_11("get_Available", Array.Empty());
}
}
集合的处理
public List Currencies
{
get
{
Class271 @Class = base.method_14<Class271>("get_Currencies", Array.Empty());
if (@Class != null)
{
return @class.method_25();
}
return null;
}
}
The text was updated successfully, but these errors were encountered: