сергей спиридонов

  • Published on
    21-Dec-2014

  • View
    3.066

  • Download
    2

Embed Size (px)

DESCRIPTION

 

Transcript

<ul><li> 1. . </li></ul> <p> 2. : Real-time 24/7 3. : 4. . : : Memory management IDE 5. . JavaC#Managed ++IDE Idea, Eclipse VS, MonoDevelopLinux IDE Idea, EclipseMonoDevelop Linux IDE Idea, Eclipse 6. . : () 7. 8. Map- Database LoS VFS 9. VFS Map- Database LoS VFS 10. . LoS Map- Database LoS VFS 11. Map- Database Map- Database LoS VFS 12. : (Event, Message) : (Command) 13. . . 14. public final class Stat {private float base;private float result;} 15. @ReplicateClassClient@ReplicateClassServerpublic final class Stat {@ReplicateServerprivate float base;@ReplicateServer@ReplicateClient@Precision(-1)private float result;} 16. @ReplicateClassClient class Stat : public Replicated@ReplicateClassServer {public final class Stat { float result;public:@ReplicateServerconst float GetResult()private float base; { return result; }@ReplicateServervoid SetResult( float r )@ReplicateClient{ result = r; }@Precision(-1)}private float result;} 17. @ReplicateClassClient /**@ReplicateClassServer * Replication code,public final class Stat { * generated automatically.* Dont change manually!@ReplicateServer*private float base; * @author ReplicatorsGenerator@ReplicateServer*/@ReplicateClientpublic interface StatReplica {@Precision(-1)float getBase();private float result; float getResult();} } 18. public class MsgPositionextends Msg{private float yaw;@NotNullprivate ConstPoint pos;} 19. @ReplicateOccurencepublic class MsgPositionextends Msg{@Precision(2)private float yaw;@NotNullprivate ConstPoint pos;} 20. @ReplicateOccurence class MsgPosition : public Msgpublic class MsgPosition{Vec3 pos;extends Msg{float yaw;@Precision(2) public:private float yaw;MsgPosition (@NotNullconst Address &amp; _from,private ConstPoint pos; const Vec3 &amp; _pos, float _yaw ):}Msg( _from ), pos( _pos ), yaw( _yaw ){}Vec3&amp; GetPos(){ return pos; }float GetYaw(){ return yaw; }}; 21. @ReplicateOccurence @ReplicateOccurencepublic class MsgPositionpublic class MsgPosition {extends Msg{public MsgPosition( in){@Precision(2) super.readCpp(in);private float yaw;pos = new MutablePoint(in);yaw = in.readFloat(2);@NotNull}private ConstPoint pos;public void writeCpp( out){} super.writeCpp(out);pos.writeCpp(out);out.writeFloat(yaw, 2);}} 22. public class Cell {@NotNullprivate Zone [] zones;private int weight = 0;} 23. public class Cell {@NotNullElements(policy = REMOVE)@DenyDefault@NotNullprivate Zone [] zones;@AllowDefaultprivate int weight = 0;} 24. public class Cell { @NotNullElements(policy = REMOVE) @DenyDefault@NotNull100500private Zone [] zones;@AllowDefault private int weight = 0; } 25. 26. : 27. : 28. Unit- () Performance- - Smoke- 29. (GC, DB) 30. ! / Allods Team s.spiridonov@corp.mail.ru </p>