Skip to content

Commit 8e7e1cc

Browse files
committed
错别字修正
1 parent 6935bea commit 8e7e1cc

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

Entity.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public bool isPlayer()
6767
return id == KBEngineApp.app.entity_id;
6868
}
6969

70-
public void addDefinedPropterty(string name, object v)
70+
public void addDefinedProperty(string name, object v)
7171
{
7272
Property newp = new Property();
7373
newp.name = name;
@@ -76,8 +76,8 @@ public void addDefinedPropterty(string name, object v)
7676
newp.setmethod = null;
7777
defpropertys_.Add(name, newp);
7878
}
79-
80-
public object getDefinedPropterty(string name)
79+
80+
public object getDefinedProperty(string name)
8181
{
8282
Property obj = null;
8383
if(!defpropertys_.TryGetValue(name, out obj))
@@ -88,12 +88,12 @@ public object getDefinedPropterty(string name)
8888
return defpropertys_[name].val;
8989
}
9090

91-
public void setDefinedPropterty(string name, object val)
91+
public void setDefinedProperty(string name, object val)
9292
{
9393
defpropertys_[name].val = val;
9494
}
9595

96-
public object getDefinedProptertyByUType(UInt16 utype)
96+
public object getDefinedPropertyByUType(UInt16 utype)
9797
{
9898
Property obj = null;
9999
if(!iddefpropertys_.TryGetValue(utype, out obj))
@@ -104,7 +104,7 @@ public object getDefinedProptertyByUType(UInt16 utype)
104104
return iddefpropertys_[utype].val;
105105
}
106106

107-
public void setDefinedProptertyByUType(UInt16 utype, object val)
107+
public void setDefinedPropertyByUType(UInt16 utype, object val)
108108
{
109109
iddefpropertys_[utype].val = val;
110110
}
@@ -121,7 +121,7 @@ public virtual void callPropertysSetMethods()
121121
{
122122
foreach(Property prop in iddefpropertys_.Values)
123123
{
124-
object oldval = getDefinedProptertyByUType(prop.properUtype);
124+
object oldval = getDefinedPropertyByUType(prop.properUtype);
125125
System.Reflection.MethodInfo setmethod = prop.setmethod;
126126

127127
if(setmethod != null)
@@ -258,7 +258,7 @@ public void cellCall(string methodname, params object[] arguments)
258258

259259
public void enterWorld()
260260
{
261-
// Dbg.DEBUG_MSG(className + "::enterWorld(" + getDefinedPropterty("uid") + "): " + id);
261+
// Dbg.DEBUG_MSG(className + "::enterWorld(" + getDefinedProperty("uid") + "): " + id);
262262
inWorld = true;
263263

264264
try{
@@ -298,7 +298,7 @@ public virtual void onLeaveWorld()
298298

299299
public virtual void enterSpace()
300300
{
301-
// Dbg.DEBUG_MSG(className + "::enterSpace(" + getDefinedPropterty("uid") + "): " + id);
301+
// Dbg.DEBUG_MSG(className + "::enterSpace(" + getDefinedProperty("uid") + "): " + id);
302302
inWorld = true;
303303

304304
try{
@@ -338,7 +338,7 @@ public virtual void onLeaveSpace()
338338

339339
public virtual void set_position(object old)
340340
{
341-
Vector3 v = (Vector3)getDefinedPropterty("position");
341+
Vector3 v = (Vector3)getDefinedProperty("position");
342342
position = v;
343343
//Dbg.DEBUG_MSG(className + "::set_position: " + old + " => " + v);
344344

@@ -355,7 +355,7 @@ public virtual void onUpdateVolatileData()
355355

356356
public virtual void set_direction(object old)
357357
{
358-
Vector3 v = (Vector3)getDefinedPropterty("direction");
358+
Vector3 v = (Vector3)getDefinedProperty("direction");
359359

360360
v.x = v.x * 360 / ((float)System.Math.PI * 2);
361361
v.y = v.y * 360 / ((float)System.Math.PI * 2);

KBEngine.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,12 +1528,12 @@ public void onUpdatePropertys_(Int32 eid, MemoryStream stream)
15281528
System.Reflection.MethodInfo setmethod = propertydata.setmethod;
15291529

15301530
object val = propertydata.utype.createFromStream(stream);
1531-
object oldval = entity.getDefinedProptertyByUType(utype);
1531+
object oldval = entity.getDefinedPropertyByUType(utype);
15321532

15331533
// Dbg.DEBUG_MSG("KBEngine::Client_onUpdatePropertys: " + entity.className + "(id=" + eid + " " +
15341534
// propertydata.name + "=" + val + "), hasSetMethod=" + setmethod + "!");
15351535

1536-
entity.setDefinedProptertyByUType(utype, val);
1536+
entity.setDefinedPropertyByUType(utype, val);
15371537
if(setmethod != null)
15381538
{
15391539
if(propertydata.isBase())
@@ -1672,8 +1672,8 @@ public void Client_onEntityEnterWorld(MemoryStream stream)
16721672
_bufferedCreateEntityMessage.Remove(eid);
16731673

16741674
entity.isOnGround = isOnGround > 0;
1675-
entity.set_direction(entity.getDefinedPropterty("direction"));
1676-
entity.set_position(entity.getDefinedPropterty("position"));
1675+
entity.set_direction(entity.getDefinedProperty("direction"));
1676+
entity.set_position(entity.getDefinedProperty("position"));
16771677

16781678
entity.__init__();
16791679
entity.inited = true;
@@ -1699,8 +1699,8 @@ public void Client_onEntityEnterWorld(MemoryStream stream)
16991699
entity.cellMailbox.className = entityType;
17001700
entity.cellMailbox.type = Mailbox.MAILBOX_TYPE.MAILBOX_TYPE_CELL;
17011701

1702-
entity.set_direction(entity.getDefinedPropterty("direction"));
1703-
entity.set_position(entity.getDefinedPropterty("position"));
1702+
entity.set_direction(entity.getDefinedProperty("direction"));
1703+
entity.set_position(entity.getDefinedProperty("position"));
17041704

17051705
_entityServerPos = entity.position;
17061706
entity.isOnGround = isOnGround > 0;
@@ -2049,8 +2049,8 @@ public void Client_onSetEntityPosAndDir(MemoryStream stream)
20492049
entity.direction.y = stream.readFloat();
20502050
entity.direction.z = stream.readFloat();
20512051

2052-
Vector3 position = (Vector3)entity.getDefinedPropterty("position");
2053-
Vector3 direction = (Vector3)entity.getDefinedPropterty("direction");
2052+
Vector3 position = (Vector3)entity.getDefinedProperty("position");
2053+
Vector3 direction = (Vector3)entity.getDefinedProperty("direction");
20542054
Vector3 old_position = new Vector3(position.x, position.y, position.z);
20552055
Vector3 old_direction = new Vector3(direction.x, direction.y, direction.z);
20562056

@@ -2062,8 +2062,8 @@ public void Client_onSetEntityPosAndDir(MemoryStream stream)
20622062
direction.y = entity.direction.y;
20632063
direction.z = entity.direction.z;
20642064

2065-
entity.setDefinedPropterty("position", position);
2066-
entity.setDefinedPropterty("direction", direction);
2065+
entity.setDefinedProperty("position", position);
2066+
entity.setDefinedProperty("direction", direction);
20672067

20682068
_entityLastLocalPos = entity.position;
20692069
_entityLastLocalDir = entity.direction;

0 commit comments

Comments
 (0)