Example #1
0
    public User()
    {
        SetPropertyObjectID((int)MVCPropertyID.enUserProps);

        UserProps = UserProperty.Singleton.CreatePropertySet("UserProperty");

        UserProps.SetProperty_String(UserProperty.name, "guo");
        UserProps.SetProperty_Int32(UserProperty.id, 123456789);
        UserProps.SetProperty_Int32(UserProperty.portrait, 1);
        UserProps.SetProperty_Int32(UserProperty.money, 1);
        UserProps.SetProperty_Int32(UserProperty.bind_money, 19000);
        UserProps.SetProperty_Int32(UserProperty.ring, 10);
        UserProps.SetProperty_Int32(UserProperty.friendship_point, 100);
        UserProps.SetProperty_Int32(UserProperty.level, 1);
        UserProps.SetProperty_Int32(UserProperty.exp, 0);
        UserProps.SetProperty_Int32(UserProperty.stamina, 12);
        UserProps.SetProperty_Int32(UserProperty.stamina_savetime, (int)TimeUtil.GetCurrentTimeStamp());
        UserProps.SetProperty_Int32(UserProperty.friendCount_expandedSize, 0);
        UserProps.SetProperty_Int32(UserProperty.bagCapcity_expandedSize, 0);

        IsTeamLeaderModel = false;
    }
Example #2
0
 public void SetUserName(string name)
 {
     UserProps.SetProperty_String(UserProperty.name, name);
     NotifyChanged((int)ENPropertyChanged.enUserPropertyChanged, null);
 }